package sphere.model;
import java.awt.*;
import java.applet.*;

public class Sphere {
	
	private double rayon;
	private static final double PI=3.14;
	
	public Sphere(double rayon){
		this.rayon=rayon;
	}
	
	public Sphere() {
		this.rayon=0.0;
	}

	public double getRayon()
	{
		return rayon;
	}

	public void setRayon(double rayon)
	{
		this.rayon = rayon;
	}
	
	public double calculerSurface(){
		return 4*PI*(this.rayon*this.rayon);
	}
	
	public double calculerVolume(){
		return 4*PI*(this.rayon*this.rayon*this.rayon)/3;
	}
	

}
